<!--{subtemplate jameson_read:touch/header}-->
<div class="header">
    <div class="weui-flex">
      <div class="weui-flex__item header_left">
        <a href="{eval echo mbreurl('zhanghu',0);}">
            <i class="fa fa-user-circle"></i>
        </a>
      </div>
      <div class="weui-flex__item header_title">
      <!--{lang jameson_read:shujia}-->
      </div>
      <div class="weui-flex__item header_right flex-2">
        <a href="{eval echo mbreurl('index',0);}">
        <i class="fa fa-home"></i>
        </a>
      <a href="javascript:;" class="open-popup" data-target="#bottomtab">
        <i class="fa fa-fw fa-bars"></i>
      </a>
      </div>
    </div>
</div>


<div class="weui-tab mt5">
  <div class="weui-navbar" style="z-index: 5">
    <a class="weui-navbar__item weui-bar__item--on" data-href="#tab1">
      <!--{lang jameson_read:shoucang}-->
    </a>
    <a class="weui-navbar__item" data-href="#tab2">
      <!--{lang jameson_read:zuijinyuedu}-->
    </a>
    <a class="weui-navbar__item" data-href="#tab3">
      <!--{lang jameson_read:shuqian}-->
    </a>
  </div>
  <div class="weui-tab__bd pt32">
    <div id="tab1" class="weui-tab__bd-item weui-tab__bd-item--active">
        {eval $advkey=0;}
        <!--{if $indexadv[$advkey]['adv']}-->
        <div class="weui-panel weui-media-box zdyadv">
          <div class="weui-panel__bd">
            <!--{eval echo stripcslashes($indexadv[$advkey]['adv']);}-->
          </div>
        </div>
        <!--{/if}-->
        <div class="weui-panel weui-panel_access">
          <div class="weui-panel__bd">
            <!--{if $shoucang}-->
              <div class="weui-cells__title">
                <span class="text-danger">|</span>
                <!--{lang jameson_read:woshoucangdetushu}-->
                <a href="javascript:;" class="text-danger" onclick="jameson.togglestore(this)">
                    <i class="fa fa-fw fa-trash-o"></i>
                </a>
              </div>
              <div class="weui-grids" id="shoucangbooks">
                <!--{loop $shoucang $key $book}-->
                <div class="weui-grid four_one" data-bookid="{$book['book_id']}">
                  <a href="javascript:;"  data-bookid="{$book['book_id']}" onclick="jameson.removebookstore(this)" class="close rmstore none text-danger">
                    <i class="fa fa-fw fa-trash-o"></i>
                  </a>
                  <a href="{eval echo mbreurl('book',$book['book_id']);}" class="">
                    <div class="">
                      <img class="weui-media-box__thumb" src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
                    </div>
                    <p class="weui-grid__label">
                      <!--{$book['book_name']}-->
                    </p>
                  </a>
                </div>
              <!--{/loop}-->
              </div>
            <!--{/if}-->
            
            <!--{if !$morentj && !$shoucang && !$historys}-->
              <a href="{eval echo mbreurl('index',0);}" style="width: 120px;height: 200px;box-shadow: 0 0 6px rgba(0,0,0,.16);display: block;text-align: center;vertical-align: middle;line-height: 200px;background: #f7f7f7;color:#aaa;margin:20px 10px;">
                <i class="fa fa-fw fa-plus fa-3x"></i>
              </a>
            <!--{/if}-->
            </div>
        </div>
        <!--{if $morentj}-->
         <div class="weui-panel weui-panel_access">
          <div class="weui-panel__bd">
          <div class="weui-cells__title">
            <span class="text-danger">|</span>
            <!--{lang jameson_read:zhubiantuijian}-->
          </div>
          <div class="weui-grids">
          <!--{loop $morentj $key $book}-->
            {if $book['book_id']}
            <a href="{eval echo mbreurl('book',$book['book_id']);}" class="weui-grid four_one">
              <i class="fa fa-thumbs-up fa-fw fire text-danger back-white"></i>
              <div class="">
                <img class="weui-media-box__thumb" src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
              </div>
              <p class="weui-grid__label">
                <!--{$book['book_name']}-->
              </p>
            </a>
            {/if}
          <!--{/loop}-->
          </div>
          </div>
          </div>
        <!--{/if}-->

    </div>
    <div id="tab2" class="weui-tab__bd-item">
        <!--{if $historys}-->
        {eval $advkey++;}
        <div class="weui-panel weui-panel_access">
          <div class="weui-panel__bd">
            <div class="mt15" id="shoucangbooks">
            <!--{loop $historys $key $book}-->
              <a data-bookid="{$book['book_id']}" class="weui-media-box weui-media-box_appmsg" href="{eval echo mbreurl('thread',$book['tid'],$book['pid'],$_G['uid']);}">
                <div class="weui-media-box__hd">
                  <img class="weui-media-box__thumb" src="{if $book['image'] && preg_match('/^http|\/\//i',$book['image'])}{$book['image']}{elseif $book['image']}./data/attachment/forum/{$book['image']}{else}{$_G['jameson_read']['morenfengmian']}{/if}">
                </div>
                <div class="weui-media-box__bd">
                  <h4 class="weui-media-box__title">
                  <!--{$book['book_name']}-->
                  </h4>
                  <p class="weui-media-box__desc">
                  <!--{$book['subject']}-->
                  </p>
                </div>
              </a>
            <!--{/loop}-->
            </div>
            </div>
        </div>
        <!--{if $indexadv[$advkey]['adv']}-->
        <div class="weui-panel weui-media-box zdyadv">
          <div class="weui-panel__bd">
            <!--{eval echo stripcslashes($indexadv[$advkey]['adv']);}-->
          </div>
        </div>
        <!--{/if}-->
        <!--{/if}-->
        <!-- end -->
    </div>
    <div id="tab3" class="weui-tab__bd-item">
      <div class="weui-panel weui-panel_access">
        <div class="weui-panel__bd">
          <!--{if $shuqian}-->
            <div class="weui-cells mt0">
            <!--{loop $shuqian $key $book}-->
              <a class="weui-cell weui-cell_access" href="{eval echo mbreurl('thread',$book['tid'],$book['pid'],$_G['uid']);}">
                  <div class="weui-cell__bd">
                    <p><!--{$book['subject']}--></p>
                  </div>
                  <div class="weui-cell__ft">[<!--{$book['book_name']}-->]
                  </div>
                </a>
            <!--{/loop}-->
            </div>
          <!--{/if}-->
          </div>
        </div>
        {eval $advkey++;}
        <!--{if $indexadv[$advkey]['adv']}-->
        <div class="weui-panel weui-media-box zdyadv">
          <div class="weui-panel__bd">
            <!--{eval echo stripcslashes($indexadv[$advkey]['adv']);}-->
          </div>
        </div>
        <!--{/if}-->
    </div>
  </div>
</div>























<!--{subtemplate jameson_read:touch/footer}-->